import Layout from "@/module-dashboard/pages/layout";
const _import = require("@/router/import_" + process.env.NODE_ENV);

export default [
  {
    path: "/companys",
    component: Layout,
    redirect: "noredirect",
    name: "companys",
    meta: {
      title: "route.enterprise",
      icon: "component"
    },
    children: [
      {
        path: "list",
        component: _import("hmmm/pages/companys"),
        name: "companys-list",
        meta: { title: "route.enterprise", noCache: true, icon: "peoples" }
      }
    ]
  },
  {
    path: "/questions",
    component: Layout,
    redirect: "noredirect",
    name: "questions",
    meta: {
      title: "route.question",
      icon: "documentation"
    },
    children: [
      {
        path: "list",
        component: _import("hmmm/pages/questions"),
        name: "questions-list",
        meta: { title: "route.basicQuestion", noCache: true, icon: "component" }
      },
      {
        path: "choice",
        component: _import("hmmm/pages/questions-choice"),
        name: "questions-choice",
        meta: { title: "route.choiceQuestion", noCache: true, icon: "component" }
      },
      {
        path: "new",
        component: _import("hmmm/pages/questions-new"),
        name: "questions-new",
        meta: { title: "route.loadQuestion", noCache: true, icon: "component" }
      },
      {
        path: "randoms",
        component: _import("hmmm/pages/questions-randoms"),
        name: "questions-randoms",
        meta: { title: "route.groupQuestions", noCache: true, icon: "component" }
      }
    ]
  },
  {
    path: "/subjects",
    component: Layout,
    redirect: "noredirect",
    name: "subjects",
    meta: {
      title: "route.subjectManage",
      icon: "table"
    },
    children: [
      {
        path: "list",
        component: _import("hmmm/pages/subjects"),
        name: "subjects-list",
        meta: { title: "route.subject", noCache: true, icon: "component" }
      },
      {
        path: "directorys",
        component: _import("hmmm/pages/directorys"),
        name: "subjects-directorys",
        meta: { title: "route.directory", noCache: true, icon: "component" }
      },
      {
        path: "tags",
        component: _import("hmmm/pages/tags"),
        name: "subjects-tags",
        meta: { title: "route.tag", noCache: true, icon: "component" }
      }
    ]
  },
  {
    path: "/articles",
    component: Layout,
    redirect: "noredirect",
    name: "articles",
    meta: {
      title: "route.interviewSkills",
      icon: "form"
    },
    children: [
      {
        path: "list",
        component: _import("hmmm/pages/articles"),
        name: "articles-list",
        meta: { title: "route.interviewSkills", noCache: true, icon: "component" }
      }
    ]
  }
];
